#ifndef INFORMATION_H
#define INFORMATION_H

#include <QWidget>
#include <QMainWindow>
#include <QMessageBox>
#include <QString>
#include <iostream>
#include <QtDebug>
#include <QTcpSocket>
#include <QtNetwork/QNetworkInterface>
#include <QtNetwork/QHostAddress>
#include <QList>
#include "login.h"

namespace Ui {
class Information;
}

class Information : public QWidget
{
    Q_OBJECT

public:
    explicit Information(QWidget *parent = nullptr);
    ~Information();

    QString IP = Login::IP;//全局IP
    int port = Login::Port;//全局端口

private slots:
    void readMsg();//接受来自服务器的信息
    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

    void on_comboBox_currentIndexChanged(int index);

private:
    Ui::Information *ui;
    QTcpSocket *socket;
};

#endif // INFORMATION_H
